#pragma once
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
//////Simple Reader which will inherit from the standart interface and allow to load files directly
#include "..\interfaces.h"
#include "ResourceCache.h"
#include <iostream>
#include <string>
#include <fstream>
#include "..\RELogger.h"
class Resource;
class NoResourceFile : public IResourceFile // no idea how to name it
{
public:
	NoResourceFile(std::string location);
	~NoResourceFile();
private:
	std::string m_FileName;
	std::ifstream m_file;
	unsigned int file_len;
public:
	virtual bool VOpen();
	virtual const std::string VGetFilename();
	virtual unsigned int VGetResourceSize(const Resource &res);
	virtual void VGetResource(const Resource &res, char * buffer);
	virtual bool VFileExist(const std::string & filename);
};